Ext.define("SHApp.EmployeeInfo.BasicInfo.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/basicinfo?format=json",
    winWidth: 665,
    winHeight: 415,
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        this.items = [{
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [
				{
				    xtype: "textfield",
				    fieldLabel: "ID",
				    name: "Id",
				    hidden: true
				}, {
				    fieldLabel: "<span style='color:red'>*</span>姓名",
				    xtype: "textfield",
				    name: "Name",
				    maxLength: 50
				}, {
				    fieldLabel: "年龄",
				    xtype: "numberfield",
				    name: "Age",
				    minValue: 0,
				    maxLength: 50
				}, {
				    fieldLabel: "名族",
				    xtype: "textfield",
				    name: "Nationality",
				    maxLength: 50
				}, {
				    fieldLabel: "国籍",
				    xtype: "textfield",
				    name: "CitizenShip",
				    maxLength: 50
				}, {
				    fieldLabel: "出生地",
				    xtype: "textfield",
				    name: "Birthplace",
				    maxLength: 100
				}, Ext.create("BLBTSystem.CmbYesNo", {
				    fieldLabel: "<span style='color:red'>*</span>证件",
				    fields: ["text"],
				    data: [["身份证"], ["护照"], ["学生证"], ["军官证"], ["驾照"]],
				    valueField: "text",
				    displayField: "text",
				    name: "Credential",
				    maxLength: 50,
				    allowBlank: false,
				    blankText: "请选择证件类型!"
				}), {
				    fieldLabel: "户口所在地",
				    xtype: "textfield",
				    name: "DomicilePlace",
				    maxLength: 100
				}, {
				    fieldLabel: "<span style='color:red'>*</span>邮箱",
				    xtype: "textfield",
				    name: "Email",
				    maxLength: 50
				}, {
				    fieldLabel: "移动电话",
				    xtype: "textfield",
				    name: "MobilePhone",
				    maxLength: 50
				}, {
				    fieldLabel: "兴趣爱好",
				    xtype: "textfield",
				    name: "Interests",
				    maxLength: 100
				}, {
				    fieldLabel: "住址",
				    xtype: "textfield",
				    name: "Address",
				    maxLength: 100
				}
            ]
        }, {
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [Ext.create("BLBTSystem.CmbYesNo", {
                fieldLabel: "<span style='color:red'>*</span>性别",
                data: [[true, "男"], [false, "女"]],
                valueField: "id",
                displayField: "text",
                name: "Gender",
                maxLength: 50
            }), {
                xtype: "datefield",
                fieldLabel: "生日",
                value: new Date(),
                name: "Birthday",
                format: 'Y-m-d'
            }, Ext.create("BLBTSystem.CmbYesNo", {
                fieldLabel: "<span style='color:red'>*</span>婚姻",
                fields: ["text"],
                data: [["未婚"], ["已婚"], ["离异"], ["丧偶"], ["未知"]],
                valueField: "text",
                displayField: "text",
                name: "Marriage",
                maxLength: 50,
                allowBlank: false,
                blankText: "请选择婚姻状况!"
            }), Ext.create("BLBTSystem.CmbYesNo", {
                fieldLabel: "<span style='color:red'>*</span>血型",
                fields: ["text"],
                data: [["O"], ["A"], ["B"], ["AB"]],
                valueField: "text",
                displayField: "text",
                name: "BloodType",
                maxLength: 50,
                allowBlank: false,
                blankText: "请选择血型!"
            }), Ext.create("BLBTSystem.CmbYesNo", {
                fieldLabel: "<span style='color:red'>*</span>政治面貌",
                fields: ["text"],
                data: [["群众"], ["党员"], ["团员"], ["民主党派"], ["其他"]],
                valueField: "text",
                displayField: "text",
                name: "PoliticsStatus",
                maxLength: 50,
                allowBlank: false,
                blankText: "请选择政治面貌!"
            }), {
                fieldLabel: "档案所在地",
                xtype: "textfield",
                name: "FilesPlace",
                maxLength: 100
            }, {
                fieldLabel: "照片",
                xtype: "textfield",
                name: "Photo",
                maxLength: 100
            }, {
                fieldLabel: "私人邮箱",
                xtype: "textfield",
                name: "PrivateEmail",
                maxLength: 50
            }, {
                fieldLabel: "个人主页",
                xtype: "textfield",
                name: "PersonalUrl",
                maxLength: 100
            }, {
                fieldLabel: "传真",
                xtype: "textfield",
                name: "Fax",
                maxLength: 50
            }, {
                xtype: "hiddenfield",
                name: "CustomerId"
            }, {
                xtype: "hiddenfield",
                name: "CustomerName"
            }]
        }
		];
    }

})